/**
 * 询价.COM v1.0.0
 * http://xun-jia.com/
 *
 * Copyright (c) 2009 
 * 四川漾天空网络科技有限公司
 * 成都市天府软件园A3栋2楼
 *
 */
package com.xunjia.manage.action;

import java.util.List;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.Action;
import com.xunjia.action.XunJiaActionSupport;
import com.yam.michael.hibernate.pojo.HyperlinkAdvInfo;
import com.yam.michael.hibernate.pojo.KeywordsAdvInfo;

/**
 * @author Mark
 * 
 * @Email Mark_yang@xun-jia.com
 * 
 * @Date 2009-4-2 下午04:03:19
 * 
 */
public class ManageAction extends XunJiaActionSupport {
	// 序列码
	private static final long serialVersionUID = 7618368073545904397L;
	// 日志
	private static final Logger logger = Logger.getLogger(AdvertisementManageAction.class);
	// 已上线关键字广告
	private List<KeywordsAdvInfo> onlineKeywords;
	// 已下线关键字广告
	private List<KeywordsAdvInfo> offlineKeywords;
	// 已上线超链接广告
	private List<HyperlinkAdvInfo> onlineHyperlink;
	// 已下线超链接广告
	private List<HyperlinkAdvInfo> offlineHyperlink;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		logger.info("execute");
		return Action.SUCCESS;
	}

	/**
	 * 获取所有等待付费的广告
	 * 
	 * @return
	 */
	public String getAllNotPayedAdvertisements() {
		logger.info("getAllNotPayedAdvertisements");
		return Action.SUCCESS;
	}

	/**
	 * 获取所有上线,下线广告(关键字广告与超链接广告)
	 * 
	 * @return
	 * @throws Exception
	 */
	public String getAllAdvertisement() throws Exception {
		return Action.SUCCESS;
	}

	/**
	 * @return the onlineKeywords
	 */
	public List<KeywordsAdvInfo> getOnlineKeywords() {
		return onlineKeywords;
	}

	/**
	 * @param onlineKeywords
	 *            the onlineKeywords to set
	 */
	public void setOnlineKeywords(List<KeywordsAdvInfo> onlineKeywords) {
		this.onlineKeywords = onlineKeywords;
	}

	/**
	 * @return the offlineKeywords
	 */
	public List<KeywordsAdvInfo> getOfflineKeywords() {
		return offlineKeywords;
	}

	/**
	 * @param offlineKeywords
	 *            the offlineKeywords to set
	 */
	public void setOfflineKeywords(List<KeywordsAdvInfo> offlineKeywords) {
		this.offlineKeywords = offlineKeywords;
	}

	/**
	 * @return the onlineHyperlink
	 */
	public List<HyperlinkAdvInfo> getOnlineHyperlink() {
		return onlineHyperlink;
	}

	/**
	 * @param onlineHyperlink
	 *            the onlineHyperlink to set
	 */
	public void setOnlineHyperlink(List<HyperlinkAdvInfo> onlineHyperlink) {
		this.onlineHyperlink = onlineHyperlink;
	}

	/**
	 * @return the offlineHyperlink
	 */
	public List<HyperlinkAdvInfo> getOfflineHyperlink() {
		return offlineHyperlink;
	}

	/**
	 * @param offlineHyperlink
	 *            the offlineHyperlink to set
	 */
	public void setOfflineHyperlink(List<HyperlinkAdvInfo> offlineHyperlink) {
		this.offlineHyperlink = offlineHyperlink;
	}
}
